import { configureStore } from '@reduxjs/toolkit';
import authReducer from './slices/auth';
import menuReducer from './slices/menu';
import tabsReducer from './slices/tabs';

export const store = configureStore({
    reducer: {
        auth: authReducer,
        menu: menuReducer,
        tabs: tabsReducer,
    },
});

export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;